package com.baizhi.controller;

import com.baizhi.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * Created by Lenovo on 2019/6/20.
 */
@Controller
@RequestMapping("banner")
public class BannerController {

    @Autowired
    private BannerService bannerService;

    //分页查询轮播图
    @RequestMapping("/fenyee")
    public @ResponseBody Map fenyee(int page ,int rows){
        return  bannerService.fenye(page, rows);
    }





}
